<?php
/**
 *                    _ooOoo_
 *                   o8888888o
 *                   88" . "88
 *                   (| -_- |)
 *                    O\ = /O
 *                ____/`---'\____
 *              .   ' \\| |// `.
 *               / \\||| : |||// \
 *             / _||||| -:- |||||- \
 *               | | \\\ - /// | |
 *             | \_| ''\---/'' | |
 *              \ .-\__ `-` ___/-. /
 *           ___`. .' /--.--\ `. . __
 *        ."" '< `.___\_<|>_/___.' >'"".
 *       | | : `- \`.;`\ _ /`;.`/ - ` : | |
 *         \ \ `-. \_ __\ /__ _/ .-` / /
 * ======`-.____`-.___\_____/___.-`____.-'======
 *                    `=---='
 *
 * .............................................
 *          佛祖保佑             永无BUG
 */

namespace App\Interfaces;


use App\User;

interface UserInterface
{
    public function createWechatUserByOpenid($openid);//用openid 获取用户存入user表
    public function createWechatUserByUserInfo($userInfo,$is_subscribe=0); //微信授权获取到的用户信息
    public function createUserQrcode(User $user);//创建微信关注二维码
    public function checkTeamLeavel(User $user);//检测团推
    public function registerNotice(User $user,$leader='');
    public function getMyFriendNumber(User $user);//朋友圈总数量
    public function getMyFriendSecondNumber(User $user);
    public function getMyTeamNumber(User $user);
    public function checkTeamLeavelReduce(User $user);//退款会员降级
    public function toBind(User $user,$leaderId);//提前绑定关系
    public function userQrcode(User $user);
    public function getMyTeamCount(User $user);//得到各等级的人数量
}